import service from '@/utils/request'

const SugarApi = {
  addSugar: function (data) {
    return service.post('sugar', data)
  },
  deleteSugar: function (data) {
    return service.put('sugar/delete', data)
  },
  editSugar: function (data) {
    return service.put('sugar', data)
  },
  listSugar: function (data) {
    return service.get('sugar/page', {params: data })
  },
  getSugarInfo: function (data) {
    return service.get('sugar', {params: data })
  },
  getSugarDetectionList: function (data) {
    return service.get('sugar/list', {params: data })
  },
}

export default SugarApi
